#pragma once
#include <QGraphicsItem>

class EntryFrameItem;

class UnfoldArrayButton :
	public QGraphicsItem
{
public:
	UnfoldArrayButton(EntryFrameItem* );
	~UnfoldArrayButton(void);
	void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
	QRectF boundingRect() const;

protected:
	void hoverEnterEvent ( QGraphicsSceneHoverEvent* );
	void hoverLeaveEvent ( QGraphicsSceneHoverEvent* );
	void mousePressEvent(QGraphicsSceneMouseEvent* );

private:
	EntryFrameItem* _frame;
	bool _isHover;
};
